package com.stq.toutiao.model.request;

import java.io.Serializable;

/**
 * @author stqsht@163.com
 * @date 2020-01-23 17:51
 */
public class TouTiaoCode2SessionParam implements Serializable {
    /**
     * 小程序 ID
     */
    private String appid;
    /**
     * 小程序的 APP Secret，可以在开发者后台获取
     */
    private String secret;
    /**
     * login接口返回的登录凭证
     */
    private String code;
    /**
     * login接口返回的匿名登录凭证
     */
    private String anonymousCode;

    public TouTiaoCode2SessionParam() {
    }

    public TouTiaoCode2SessionParam(String appid, String secret) {
        this.appid = appid;
        this.secret = secret;
    }

    public TouTiaoCode2SessionParam(String appid, String secret, String code, String anonymousCode) {
        this.appid = appid;
        this.secret = secret;
        this.code = code;
        this.anonymousCode = anonymousCode;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAnonymousCode() {
        return anonymousCode;
    }

    public void setAnonymousCode(String anonymousCode) {
        this.anonymousCode = anonymousCode;
    }
}
